﻿<?php require_once('../Connections/aciitu.php'); ?>
<?php
// Load the common classes
require_once('../includes/common/KT_common.php');

// Load the tNG classes
require_once('../includes/tng/tNG.inc.php');

// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("../");

// Make unified connection variable
$conn_aciitu = new KT_connection($aciitu, $database_aciitu);

//Start Restrict Access To Page
$restrict = new tNG_RestrictAccess($conn_aciitu, "../");
//Grand Levels: Level
$restrict->addLevel("1");
$restrict->addLevel("2");
$restrict->Execute();
//End Restrict Access To Page

// Make a logout transaction instance
$logoutTransaction = new tNG_logoutTransaction($conn_aciitu);
$tNGs->addTransaction($logoutTransaction);
// Register triggers
$logoutTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "GET", "KT_logout_now");
$logoutTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "login.php");
// Add columns
// End of logout transaction instance

// Execute all the registered transactions
$tNGs->executeTransactions();

// Get the transaction recordset
$rscustom = $tNGs->getRecordset("custom");
$row_rscustom = mysql_fetch_assoc($rscustom);
$totalRows_rscustom = mysql_num_rows($rscustom);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>.: Rádio CLUBE FM | Administração  :.</title>

<link href="../css/css_admin.css" rel="stylesheet" type="text/css" />

  <style type="text/css">
  a.texto_submenu:link {text-decoration: none}
  a.texto_submenu:visited {text-decoration: none}
  a.texto_submenu:hover {
  text-decoration: underline; 
  color: #000000;
  }
  a.texto_submenu:active {text-decoration: none}
  </style>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #000000;
}
a:link {
	color: 0;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: 0;
}
a:hover {
	text-decoration: none;
	color: 0;
}
a:active {
	text-decoration: none;
	color: 0;
}
-->
</style>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
</head>
<body oncontextmenu="return false">
 <div id="corpo" align="right">
  <table border="0">
    <tr>
    <td align="right"><span class="maislink_admin2">Olá, <?php echo $_SESSION['kt_nome_user']; ?> (usuário: <?php echo $_SESSION['kt_login_user']; ?>) |</span>
        <?php
	echo $tNGs->getErrorMsg();
?>
        <a href="<?php echo $logoutTransaction->getLogoutLink(); ?>" target="_parent" title="Sair do Sistema">
        <span class="sair_menu">
        Sair
        </span>
        </a>
        &nbsp;&nbsp;
        <br />
        <span class="maislink_admin2">
        Seja bem vindo ao <span class="sair_menu">S</span>istema <span class="sair_menu">A</span>dministrativo&nbsp;&nbsp;
        </span>
        </td>
    </tr>
    </table>
</div><br><br><br><br><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="../imagens/logo part 1.png" width="225" height="129"></td>
        <td><img src="../imagens/logo part 2.png" width="225" height="129"></td>
      </tr>
      <tr>
        <td><img src="../imagens/logo part 3.png" width="225" height="131"></td>
        <td><img src="../imagens/logo part 4.png" width="225" height="131"></td>
      </tr>
    </table>
    <div align="center"></div></td>
  </tr>
</table>

</body>
</html>